package cn.stylefeng.guns.modular.ums.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * VIP充值记录表
 * </p>
 *
 * @author yzb
 * @since 2019-11-07
 */
@TableName("ums_member_vip_orders")
public class MemberVipOrders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @TableId(value = "orders_id", type = IdType.AUTO)
    private Integer ordersId;

    /**
     * 订单编号
     */
    @TableField("orders_sn")
    private String ordersSn;

    /**
     * 购买会员id
     */
    @TableField("member_id")
    private Integer memberId;

    /**
     * VIP id
     */
    @TableField("vip_id")
    private Integer vipId;

    /**
     * VIP名称
     */
    @TableField("vip_name")
    private String vipName;

    /**
     * 订单原价
     */
    @TableField("total_amount")
    private BigDecimal totalAmount;

    /**
     * 订单实付
     */
    @TableField("pay_amount")
    private BigDecimal payAmount;

    /**
     * 支付方式
     */
    @TableField("pay_type")
    private Integer payType;

    /**
     * 订单状态：0-待付款	1-已付款	2-已关闭	3-无效订单
     */
    @TableField("orders_status")
    private Integer ordersStatus;

    /**
     * 订单备注
     */
    @TableField("note")
    private String note;

    /**
     * 订单来源
     */
    @TableField("source_type")
    private Integer sourceType;

    /**
     * 软件版本
     */
    @TableField("source_version")
    private String sourceVersion;

    /**
     * 添加时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 支付时间
     */
    @TableField("pay_time")
    private Date payTime;

    /**
     * 是否删除
     */
    @TableField("if_del")
    private Integer ifDel;

    /**
     * 删除时间
     */
    @TableField("delete_time")
    private Date deleteTime;


    public Integer getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(Integer ordersId) {
        this.ordersId = ordersId;
    }

    public String getOrdersSn() {
        return ordersSn;
    }

    public void setOrdersSn(String ordersSn) {
        this.ordersSn = ordersSn;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public Integer getVipId() {
        return vipId;
    }

    public void setVipId(Integer vipId) {
        this.vipId = vipId;
    }

    public String getVipName() {
        return vipName;
    }

    public void setVipName(String vipName) {
        this.vipName = vipName;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Integer getOrdersStatus() {
        return ordersStatus;
    }

    public void setOrdersStatus(Integer ordersStatus) {
        this.ordersStatus = ordersStatus;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getSourceType() {
        return sourceType;
    }

    public void setSourceType(Integer sourceType) {
        this.sourceType = sourceType;
    }

    public String getSourceVersion() {
        return sourceVersion;
    }

    public void setSourceVersion(String sourceVersion) {
        this.sourceVersion = sourceVersion;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Integer getIfDel() {
        return ifDel;
    }

    public void setIfDel(Integer ifDel) {
        this.ifDel = ifDel;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    @Override
    public String toString() {
        return "MemberVipOrders{" +
        "ordersId=" + ordersId +
        ", ordersSn=" + ordersSn +
        ", memberId=" + memberId +
        ", vipId=" + vipId +
        ", vipName=" + vipName +
        ", totalAmount=" + totalAmount +
        ", payAmount=" + payAmount +
        ", payType=" + payType +
        ", ordersStatus=" + ordersStatus +
        ", note=" + note +
        ", sourceType=" + sourceType +
        ", sourceVersion=" + sourceVersion +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", payTime=" + payTime +
        ", ifDel=" + ifDel +
        ", deleteTime=" + deleteTime +
        "}";
    }
}
